<script>mascara();</script>
<div class="gridConteudo">
    {CHAMA_FUNCAO funcao="getCaminhoPastaBanco" classe="imprimiConteudo"}
    <form class="margin30px padding20px bordaDecorada" name="formPerfilUsuario" id="formPerfilUsuario" action="{$smarty.const.URL_FUNCAO_GET_POST}Y2xhc3NlPWV4ZWN1dGFGdW5jb2VzJmZ1bmNhbz1zYWx2YURhZG9zUGVyZmls" method="post" enctype="multipart/form-data">
        <h1>Dados Pessoais {if $via_facebook eq "S"}<br /><small>Usuário Facebook</small>{/if}</h1>
        <div class="divForm">
            <input style="display:none" type="text" name="tabela" id="tabela" value="tb_usuario" />
            <input style="display:none" type="text" name="id" id="id" value="id_usuario" />
            <input style="display:none" type="text" name="url" id="url" value="{$URLATUAL}" />
            <div class="span12 offset0"></div>
            {if $smarty.get.msg eq 0 || $smarty.get.msg eq 1 || $smarty.get.msg eq 7 || $smarty.get.msg eq 6}
                {if $MSG}
                    <div class="alert floatLeft width96percent {$TIPO_MSG}" align="center">
                        <button class="close" data-dismiss="alert"  type="button">x</button>
                        <strong>{$TITULO_MSG}</strong><br />
                        {$MSG}
                    </div>
                {/if}
            {/if}

            <label class="label-xxlarge" for="nome_usuario">Nome:
                <input class="input-xxlarge" type="text" placeholder="Nome" name="nome_usuario" id="nome_usuario"  value="{$nome_usuario}"/>
            </label>
            <div class="span12 offset0 minHeight0"></div>
            <label class="label-large" for="email_usuario">Email:
                <input class="input-large" readonly="true" type="text" placeholder="Email" name="email_usuario" id="email_usuario"  value="{$email_usuario}"/>
            </label>
            <div class="span12 offset0 minHeight0"></div>
            <label class="label-large" for="email_opcional">Email Opcional:
                <input class="input-large" type="text" placeholder="Email Opcional" name="email_opcional" id="email_opcional"  value="{$email_opcional}"/>
            </label>
            <div class="span12 offset0 minHeight0"></div>
            <label class="label-large" for="telefone_1">Telefone:
                <input class="input-large" type="text" placeholder="Telefone" name="telefone_1" id="telefone_1"  value="{$telefone_1}"/>
            </label>
            <div class="span12 offset0 minHeight0"></div>
            <label class="label-large" for="telefone_2">Telefone Comercial:
                <input class="input-large" type="text" placeholder="Telefone Comercial" name="telefone_2" id="telefone_2"  value="{$telefone_2}"/>
            </label>
            <div class="span12 offset0 minHeight0"></div>
            <label class="label-large" for="fax">Fax:
                <input class="input-large" type="text" placeholder="Fax" name="fax" id="fax"  value="{$fax}"/>
            </label>
            <div class="span12 offset0 minHeight0"></div>
            <label class="label-large" for="celular">Celular:
                <input class="input-large" type="text" placeholder="Celular" name="celular" id="celular"  value="{$celular}"/>
            </label>
            <center>
                <button class="btn btn-personalizado" onclick="validaForm('formPerfilUsuario')" type="submit">Atualizar</button>
                <button class="btn btn-personalizado" type="button" onclick="window.location = '{$smarty.const.URL_PASTA_SITE}'">Cancelar</button>
            </center>
        </div>
    </form>
    {if $via_facebook neq "S"}
        <form class="container-fluid margin30px padding20px bordaDecorada"  name="formPerfilUsuarioAltSenha" id="formPerfilUsuarioAltSenha" action="{$smarty.const.URL_FUNCAO_GET_POST}Y2xhc3NlPWV4ZWN1dGFGdW5jb2VzJmZ1bmNhbz1hbHRlcmFTZW5oYVBlcmZpbA==" method="post" enctype="multipart/form-data">
            <div class="divForm">
                {if $smarty.get.msg eq 3 || $smarty.get.msg eq 2 || $smarty.get.msg eq 4 || $smarty.get.msg eq 5}
                    {if $MSG}
                        <div class="alert floatLeft width96percent {$TIPO_MSG}" align="center">
                            <button class="close" data-dismiss="alert"  type="button">x</button>
                            <strong>{$TITULO_MSG}</strong><br />
                            {$MSG}
                        </div>
                    {/if}
                {/if}
                <div class="span12 offset0"></div>
                <div class="span12 offset0">
                    <h1>Alterar Senha</h1>
                    <label class="label-large" for="senha_atual">Senha Altual:
                        <input class="input-large" type="password" placeholder="Senha Atual" name="senha_atual" id="senha_atual"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="nova_senha">Nova Senha:
                        <input class="input-large" type="password" placeholder="Nova Senha" name="nova_senha" id="nova_senha"/>
                    </label>
                    <div class="span12 offset0 minHeight0"></div>
                    <label class="label-large" for="confirma_senha">Confirma Senha:
                        <input class="input-large" type="password" placeholder="Confirma Senha" name="confirma_senha" id="confirma_senha"/>
                    </label>
                    <button class="btn btn-personalizado" onclick="validaForm('formPerfilUsuarioAltSenha')" type="submit">Alterar</button>
                    <button class="btn btn-personalizado" type="button" onclick="window.location = '{$smarty.const.URL_PASTA_SITE}'">Cancelar</button>
                </div>          
            </div>
        </form>
    {/if}
</div>